package com.ys.entity.overseas;

import java.util.Date;
import javax.persistence.Table;
import com.alibaba.fastjson.annotation.JSONField;
import com.ys.annotation.YsField;
import com.ys.entity.base.BaseEntity;
/**
*/
@Table(name="TOS_ProductActiveDescribe", catalog="Id")
public class TosProductActiveDescribe extends BaseEntity<TosProductActiveDescribe> {

	@YsField(nameDataBase="Id", nameJava="id", typeDataBase="bigint")
	private Long id;
	@YsField(nameDataBase="TosProductActiveId", nameJava="tosProductActiveId", typeDataBase="bigint")
	private Long tosProductActiveId;
	@YsField(nameDataBase="InfoType", nameJava="infoType", typeDataBase="tinyint")
	private Integer infoType;
	@YsField(nameDataBase="ContentInfo", nameJava="contentInfo", typeDataBase="varchar")
	private String contentInfo;
	@YsField(nameDataBase="InfoNo", nameJava="infoNo", typeDataBase="int")
	private Integer infoNo;
	@YsField(nameDataBase="Status", nameJava="status", typeDataBase="tinyint")
	private Integer status;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="CreateTime", nameJava="createTime", typeDataBase="datetime")
	private Date createTime;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="UpdateTime", nameJava="updateTime", typeDataBase="datetime")
	private Date updateTime;

	public Long getId() {
		return id;
	}
	public TosProductActiveDescribe setId(Long id) {
		this.id = id;
		return this;
	}
	public Long getTosProductActiveId() {
		return tosProductActiveId;
	}
	public TosProductActiveDescribe setTosProductActiveId(Long tosProductActiveId) {
		this.tosProductActiveId = tosProductActiveId;
		return this;
	}
	public Integer getInfoType() {
		return infoType;
	}
	public TosProductActiveDescribe setInfoType(Integer infoType) {
		this.infoType = infoType;
		return this;
	}
	public String getContentInfo() {
		return contentInfo;
	}
	public TosProductActiveDescribe setContentInfo(String contentInfo) {
		this.contentInfo = contentInfo;
		return this;
	}
	public Integer getInfoNo() {
		return infoNo;
	}
	public TosProductActiveDescribe setInfoNo(Integer infoNo) {
		this.infoNo = infoNo;
		return this;
	}
	public Integer getStatus() {
		return status;
	}
	public TosProductActiveDescribe setStatus(Integer status) {
		this.status = status;
		return this;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public TosProductActiveDescribe setCreateTime(Date createTime) {
		this.createTime = createTime;
		return this;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public TosProductActiveDescribe setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
		return this;
	}

	public static TosProductActiveDescribe tosProductActiveDescribe(
		Long tosProductActiveId,
		Integer infoType,
		String contentInfo,
		Integer infoNo,
		Integer status
			) {
		TosProductActiveDescribe entity = new TosProductActiveDescribe();
		entity.setTosProductActiveId(tosProductActiveId);
		entity.setInfoType(infoType);
		entity.setContentInfo(contentInfo);
		entity.setInfoNo(infoNo);
		entity.setStatus(status);
		return entity;
	}
}